<script>
    //全局前置钩子 beforeEach

    //全局后置钩子 afterEach

    //全局解析守卫 beforeResolve

    //路由独享 beforeEnter

    //组件独享 beforeRouterEnter beforeRouterLeave beforeRouterUpdate
</script>